package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}

type Product struct {
	gorm.Model
	ProductName string  `gorm:"type:varchar(30)"`
	Price       float64 `gorm:"type:decimal(10,2)"`
	Num         int     `gorm:"type:int(10)"`
}

type Order struct {
	gorm.Model
	UserId      int    `gorm:"type:int(10)"`
	ProductId   int    `gorm:"type:int(10)"`
	OrderName   string `gorm:"type:varchar(30)"`
	OrderNumber string `gorm:"type:varchar(30)"`
	OrderNum    string `gorm:"type:int(10)"`
}
